package com.yunc.modules.sys.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunc.modules.sys.entity.SysLog;
import com.yunc.modules.sys.entity.dto.SysLogDTO;
import com.yunc.modules.sys.mapper.SysLogMapper;
import com.yunc.modules.sys.service.ISysLogService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 系统日志
 *
 * @author tao cong cong
 * @create 2018/2/4 下午6:55
 */
@Service("sysLogService")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SysLogServiceImpl extends ServiceImpl<SysLogMapper, SysLog> implements ISysLogService {

    private final SysLogMapper sysLogMapper;

    @Override
    public List<SysLogDTO> listEntity(SysLog sysLog) {
        return sysLogMapper.listEntity(sysLog);
    }

    @Override
    public List<SysLogDTO> listEntityDate(SysLog sysLog) {
        return sysLogMapper.listEntityDate(sysLog);
    }

    @Override
    public List<SysLog> pageInfo(Page<SysLog> page, SysLog sysLog) {
        return sysLogMapper.pageInfo(page, sysLog);
    }
}
